/**
 * Copyright (C) 2015-2018 IQIYI
 * All rights reserved.
 *
 * Author     : 王海斌
 * E-mail     : wanghaibin@qiyi.com
 * Version    :
 * Date       : Tue 09 Feb 2021 09:54:13 AM CST
 * Destription: 测试*p++
 *          结论：
 *              *p++ 先取p指向的数值，然后对p自增
 *              所以 *p++=*q++ 为取q的值赋值给取p的值，然后q和p都自增
 */
#include <stdio.h>
int main(int argc, char** argv)
{
    (void)argc;
    (void)argv;
    const char* data = "whb";
    const char * tp = data;
    printf("tp=%p, ", tp);
    char tt = *tp++;
    printf("*tp++=%c, p=%p\n", tt, tp);
}
